//
//  NCChatViewLeftCell.m
//  AGEmojiKeyboard
//
//  Created by LINAICAI on 2018/4/13.
//

#import "NCChatViewLeftCell.h"

@implementation NCChatViewLeftCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    self.usrNameLabel.font = [UIFont systemFontOfSize:13];
    self.usrNameLabel.textColor = [UIColor grayColor];
    

    
    self.contentLabel.font = [UIFont systemFontOfSize:14];
    self.contentLabel.textColor = [UIColor blackColor];
    self.contentLabel.numberOfLines = 0;
    self.contentLabel.linkAttributes = @{(NSString *)kCTUnderlineStyleAttributeName : [NSNumber numberWithBool:NO],
                                         (NSString*)kCTForegroundColorAttributeName : (id)[[UIColor colorWithRed:67/255.0 green:177/255.0 blue:255/255.0 alpha:1.0] CGColor]};
    

    
    self.avatorImage.layer.cornerRadius = 34.0/2;
    self.avatorImage.layer.masksToBounds = YES;
    
    
    self.contentImage.tintColor = [UIColor colorWithRed:241/255.0 green:240/255.0 blue:240/255.0 alpha:1.0];
    self.contentImage.image = [[NCChatUIImage(@"icon_receiver_node_normal")imageWithRenderingMode:UIImageRenderingModeAlwaysTemplate] resizableImageWithCapInsets:UIEdgeInsetsMake(20, 20, 20, 20) resizingMode:UIImageResizingModeStretch];
}

- (void)setMessage:(NCChatTextMessage *)message{
    [super setMessage:message];
    self.contentLabel.text = message.text;
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
